package com.dys.processcontrol.circularstructure;

/**
 * @className: com.dys.processcontrol.circularstructure.ReturnTest
 * @description: return关键字
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/06/19 下午10:14
 */
public class ReturnTest {

    public static void main(String[] args) {
        for (int i = 1; i < 101; i++) {
            while (i == 36) {
                // 遇到return结束当前所在的方法
                return;
            }
            System.out.println(i);
        }
        System.out.println("---------");
    }
}
